package com.example.fiegnServer;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.admin.service.impl.DataScope;
import com.example.util.APIState;
import com.example.util.AjaxFeignResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/fiegn")
public class FiegnShiroService {

    @Autowired
    private DataScope dataScope;


    //数据权限
    @PostMapping("/dataScope")
    public AjaxFeignResult dataScope(@RequestBody QueryWrapper queryWrapper){
        dataScope.dataScope(queryWrapper);
       return new AjaxFeignResult(APIState.S00.getCode(),queryWrapper);
    }








}
